import 'package:flutter/material.dart';
class HPButton extends StatelessWidget {
  const HPButton({super.key, required this.text, required this.icon, this.onClick});

  final String text;
  final IconData icon;
  final void Function()? onClick;

  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        GestureDetector(
          onTap: onClick,
          child: Container(
            width: 80,
            height: 80,
            decoration: BoxDecoration(
              color: Colors.white,
              borderRadius: BorderRadius.circular(40),
              boxShadow: [
                BoxShadow(
                  color: Colors.black.withOpacity(0.1),
                  offset: Offset(1, 2),
                  blurRadius: 4,
                  spreadRadius: 1,
                )
              ],
            ),
            child: Icon(
              icon,
              size: 55,
            ),
          ),
        ),
        SizedBox(
          height: 5,
        ),
        Text(
          text,
          style: TextStyle(fontSize: 14, fontWeight: FontWeight.bold),
        )
      ],
    );
  }
}